package com.demo.shop.repository;

import com.demo.shop.bean.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository("userMapper")
public interface UserMapper {

    @Select("select * from ec_user where login_name = #{loginName}")
    User login(@Param("loginName") String loginName);

}
